package com.lyf.scm.plan.domain.convertor;

import com.lyf.scm.plan.insfrastructure.db.dataobject.es.BigdataPredictlyEsEntity;
import com.lyf.scm.plan.insfrastructure.db.dataobject.es.SalesPlanEsEntity;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 销售计划es对象转换器
 * @author Martin
 * @date 2020-10-31 18:50
 */
@Mapper(componentModel = "spring")
public interface SalesPlanEsConvertor {

    /**
     * 预测补货数据转销售计划数据
     * @param bigdataPredictlyEsEntity
     * @return
     */
    SalesPlanEsEntity bigdata2SalesPlan(BigdataPredictlyEsEntity bigdataPredictlyEsEntity);

    /**
     * list 预测补货数据转销售计划数据
     * @param list
     * @return
     */
    List<SalesPlanEsEntity> bigdata2SalesPlanList(List<BigdataPredictlyEsEntity> list);
}
